-
Notifications
You must be signed in to change notification settings - Fork 440
Added docs for query builder #1173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There is not an easy way of introducing a breaking change… It should be experimental and advised for some time before changing the whole api. Otherwise I guess we’re making it difficult for users. I think we can remove the old query and change the new one so it’s the default soon anyway |
I assume I can just reference QueryBuilder instead of ExperimentalQuery which I imagine won’t get removed in the future? |
If you look into the code ExperimentalQuery is just an alias: https://github.com/O365/python-o365/blob/master/O365/utils/__init__.py#L12 I will remove this alias in the future. Just use QueryBuilder like you said |
@RogerSelwyn thinking of setting the new Query as a default. What do you think? |
It;s fine for me, I already migrated. Just need to note a breaking change in the change log. The challenge will be where people don't have the version of O365 pinned. Alternatively, include a deprecation warning in the logs for a few months. |
The deprecation warning is in place since June 2025 (O365 version 2.1.4) |
I'll change the default Query to the new one for the moment but keep the old one as well |
@RogerSelwyn I've dropped setup.py completely (requirement.txt, etc.) and use the new pyproject.tml with uv: The problem is that I broke the github action to build the pages as it was using Do you mind helping me moving the github action to use uv and pyproject.toml? |
OK, so I will have to learn UV, probably time for me to anyway then I can do the same to my own projects. A next week task probably. Then I'm away for a week, 12-19. |
Probably didn't see it because I had migrated...
Good plan... |
Added docs for query builder based on old query helper docs. Two comments to make:
mailbox.new_query
. Now you must:Would it be feasible to add the new builder method to ApiComponent?